package com.luyou.a08;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.web.context.WebApplicationContext;

import javax.annotation.PreDestroy;

/**
 * @author 28336
 * @version 1.0
 * Create by 2023/12/25 8:50
 */
@Slf4j
@Component
@Scope(WebApplicationContext.SCOPE_SESSION)
public class BeanForSession {

    @PreDestroy
    public void destroy(){
        log.info("session destroy");
    }
}
